<table class="table ">
    <colgroup>
        <col class="span1">
        <col class="span7">
    </colgroup>
    <thead>
        <tr>
            <th><?php echo '属性'; ?></th>
            <th><?php echo '内容'; ?></th>
        </tr>
    </thead>
    <tbody>
           
        <tr><td> <?php echo '内容名称'; ?> </td>
            <td>
                <?php
                echo $form->textField($model, $contentNameField, array('placeholder' => '活动名称' . '...', 'required' => true));
                ?>
            </td>
        </tr>               
        <tr>
            <td> <?php echo '内容详情'; ?>  </td>                    
            <td>
               
               <?php
                echo $form->textArea($model, $contentDescriptionField, array('placeholder' => '活动简介' . '...','id'=>'summernote'));
                ?>
            </td>
        </tr>
        <tr>
            <td> <?php echo '图片'; ?>  </td>                    
            <td>
               <?php
                echo $form->fileField($model, $contentImageField);
                if (strstr($model->$contentImageField, '.')) {
                     $imageUrl = Yii::app()->request->baseUrl . $model->$contentImageField;
                     echo "<img src=" . $imageUrl . " width=50 height=50 />";
                }
                ?>
            </td>
        </tr>
        <tr>
            <td> <?php echo '作者'; ?>  </td>                    
            <td>
               
               <?php
                echo $form->textField($model, $contentAuthorField, array('placeholder' => '作者' . '...'));
                ?>
            </td>
        </tr>
        <tr>
            <td> <?php echo '时间'; ?>  </td>                    
            <td>
                    <div id="activeTime-timepicker" class="input-append">
                        <?php
                        echo $form->textField($model, $contentTimeField, array('data-format' => "yyyy-MM-dd hh:mm:ss", 'type' => "text", 'placeholder' => '时间' . '...'));
                        ?>
                        <span class="add-on">
                            <i data-time-icon="icon-time" data-date-icon="icon-calendar">
                            </i>
                        </span>     

                    </div>
            </td>
        </tr>
    </tbody>
</table>